package net.wanho.util;

/**
 * 管理当前登录用户的信息
 */
public class CurrentUtil {

    private static ThreadLocal<Integer> localId = new ThreadLocal<>();

    public static void setId(Integer id){
        localId.set(id);
    }

    public static Integer getId(){
        return localId.get();
    }

}
